import request from '@/utils/request'

// 查询考试答题结果列表
export function listPaperAnswer(query) {
  return request({
    url: '/exam/paperAnswer/list',
    method: 'get',
    params: query
  })
}

// 查询考试答题结果详细
export function getPaperAnswer(answerId) {
  return request({
    url: '/exam/paperAnswer/' + answerId,
    method: 'get'
  })
}

// 新增考试答题结果
export function addPaperAnswer(data) {
  return request({
    url: '/exam/paperAnswer',
    method: 'post',
    data: data
  })
}

// 修改考试答题结果
export function updatePaperAnswer(data) {
  return request({
    url: '/exam/paperAnswer',
    method: 'put',
    data: data
  })
}

// 删除考试答题结果
export function delPaperAnswer(answerId) {
  return request({
    url: '/exam/paperAnswer/' + answerId,
    method: 'delete'
  })
}

// 导出考试答题结果
export function exportPaperAnswer(query) {
  return request({
    url: '/exam/paperAnswer/export',
    method: 'get',
    params: query
  })
}